
const randStr = (len) => {
    const str = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    let res = '';
    for (let i = 0; i < len; i++) {
        res += str.charAt(Math.floor(Math.random() * str.length))
    }
    return res;
}

module.exports = {
    randStr
}